<style>
    th{background-color:#f1f1f1;}
</style>
<ul class="breadcrumb">当前位置：
    <a href="#">首页</a> <span class="divider">/</span>
    <a href="#">前台</a> <span class="divider">/</span>
    会员列表
</ul>
<div class="title_right"><strong>会员列表</strong></div>
<div style="margin:auto">
    <table class="table table-bordered" >
        <tr>
            <th>编号</th>
            <th>账号</th>
            <th>真实姓名</th>
            <th>性别</th>
            <th>(区号)电话</th>
            <th>邮箱</th>
            <th>状态</th>
            <th>地址</th>
            <th>操作</th>
        </tr>
        <?php if(!empty($userInfo) && is_array($userInfo)):?>
            <?php foreach($userInfo as $k=>$v):?>
            <tr>
                <td style="text-align:center">{$v['id']}</td>
                <td>{$v['user_name']}</td>
                <td>{$v['true_name']}</td>
                <td>{$v['sex'] ? '男':'女'}</td>
                <td>({$v['area_code']}){$v['tel']}</td>
                <td>{$v['email']}</td>
                <td style="color:{$v['status']  ? 'green':'red'}">{$v['status'] ? '正常':'禁用'}</td>
                <td>{$v['address']}</td>
                <td><a href="#">删除</a></td>
            </tr>
            <?php endforeach;?>
        <?php endif;?>
    </table>
</div>

